/*
 * @Descripttion: 全局状态
 * @version: V1.0
 * @Author: GW
 * @Date: 2021-07-29 10:40:42
 * @LastEditors: GW
 * @LastEditTime: 2021-09-25 13:45:45
 */
const order = {
    state: {
        invoiceData: {},//生单时候保存的数据
        mrpBackData: [],//mrp运算返回的数据
        mrpBackDataCopy:[],
        wherehouseId: null,//盘存单选择仓库时储存id
        isCollected: null,//是否关注状态
    },
    getters: {

    },
    mutations: {
        SET_ARR (state, newData) {
            state.invoiceData = newData;
        },
        SET_MRP (state, data) {
            state.mrpBackData = data;
        },
        SET_MRP_COPY (state, data) {
            state.mrpBackDataCopy = data;
        },
        SET_WHEREHOUSEID (state, data) {
            state.wherehouseId = data;
        },
        SET_ISCOLLECTED (state, data) {
            state.isCollected = data;
        },
    },
    actions: {

    },

}
export default order;